package edu.university.demo.system.repository;


import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import edu.university.demo.system.entit.SongInfo;

public interface SongInfoDao extends PagingAndSortingRepository<SongInfo, Long>, JpaSpecificationExecutor<SongInfo>{

	@Query("update SongInfo i set i.dayAmout = 0")
	public void resetDayAmout();
	
	@Query("update SongInfo i set i.weekAmout = 0")
	public void resetWeekAmout();
	
	@Query("update SongInfo i set i.monthAmout = 0")
	public void resetMonthAmout();
}
